<?php
	
	chdir("../../");
	require ("PHP/config/main.conf.php");
	$id = $_POST['idOfProduct'];
	$oneProductInBasket = new HTML('__oneProductInBasket');
	$result = Model::getPoductById($id);
	$oneProductInBasket -> set_var("NAME",$result['name']);
	$oneProductInBasket -> set_var("PRICE",$result['price']);
	echo $oneProductInBasket->gen();
?>